from .base import *

__all__ = [
    'QuestionItem'
]


# 问题
class QuestionItem(BaseItem):
    item_type = 'question'  # 类型
    followNum = scrapy.Field()  # 关注数
    readNum = scrapy.Field()  # 阅读数
    commentNum = scrapy.Field()  # 评论数
    uid = scrapy.Field()  # 提问者，用户ID

    def __init__(self):
        super().__init__()
        self['type'] = 'question'
